package com.dy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dy.pojo.dto.DyCommentDTO;
import com.dy.pojo.entity.DyCommentEntity;
import com.dy.pojo.vo.DyCommentVO;

import java.util.List;

/**
 * @ClassName:
 * @Author: 仄言in
 * @Desctiption: (描述)
 * @Date: 2021/6/10 11:17
 * @Version 1.0 (版本)
 */
public interface DyCommentService extends IService<DyCommentEntity> {
    /**
     * 查询所有评论
     * @return
     */
    List<DyCommentVO> selectAll();

    /**
     * 新增评论
     * @param dyCommentDTO
     * @return Boolean
     */
    Boolean create(DyCommentDTO dyCommentDTO);

    /**
     * 回复评论
     * @param dyCommentDTO
     * @return Boolean
     */
    Boolean reply(DyCommentDTO dyCommentDTO);
}
